﻿<%@ Page Title="价格管理" Language="C#" MasterPageFile="~/POS/POS.Master" AutoEventWireup="true" CodeBehind="UpdatePrice.aspx.cs" Inherits="Me.Amon.POS.UpdatePrice" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script type="text/javascript">
        function doInit() {
            $("#MainContent_TbDates").datepicker();
            $("#MainContent_TbDatet").datepicker();
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td style="width: 200px" valign="top">
                        <table border="0" cellpadding="4" cellspacing="0" class="dialog" width="320">
                            <tr>
                                <th align="right">
                                    <span class="notice">* </span>商品代码
                                </th>
                                <td align="left">
                                    <asp:Label ID="LlCode" runat="server"></asp:Label>
                                    <asp:HiddenField ID="HfId" runat="server" />
                                    <!--价格ID -->
                                    <asp:HiddenField ID="HfSpu" runat="server" />
                                    <!--商品ID-->
                                    <asp:HiddenField ID="HfCat" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <th align="right">
                                    <span class="notice">* </span>商品名称
                                </th>
                                <td align="left">
                                    <asp:Label ID="LlName" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <th align="right">
                                    计量单位
                                </th>
                                <td align="left">
                                    <asp:Label ID="LlUom" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <th align="right">
                                    型号
                                </th>
                                <td align="left">
                                    <asp:Label ID="LlMode" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <th align="right">
                                    规格
                                </th>
                                <td align="left">
                                    <asp:Label ID="LlSpec" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <th align="right">
                                    库存
                                </th>
                                <td align="left">
                                    <asp:Label ID="LlUsableInv" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <th align="right">
                                    <span class="notice">* </span>零售价：
                                </th>
                                <td align="left">
                                    <asp:TextBox ID="TbSpuPrice" runat="server" Width="80px"></asp:TextBox>元
                                </td>
                            </tr>
                            <tr>
                                <th align="right">
                                    <span class="notice">* </span>会员价：
                                </th>
                                <td align="left">
                                    <asp:TextBox ID="TbVipPrice" runat="server" Width="80px"></asp:TextBox>
                                    <asp:DropDownList ID="CbVipType" runat="server">
                                        <asp:ListItem Text="元" Value="1"></asp:ListItem>
                                        <asp:ListItem Text="折" Value="2"></asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <th align="right">
                                    <span class="notice">* </span>折扣价：
                                </th>
                                <td align="left">
                                    <asp:TextBox ID="TbProPrice" runat="server" Width="80px"></asp:TextBox>
                                    <asp:DropDownList ID="CbProType" runat="server">
                                        <asp:ListItem Text="元" Value="1"></asp:ListItem>
                                        <asp:ListItem Text="折" Value="2"></asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <th align="right">
                                    折扣类型：
                                </th>
                                <td align="left">
                                    <asp:TextBox ID="TbProName" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <th align="right">
                                    <span class="notice">* </span>起始日期：
                                </th>
                                <td align="left">
                                    <asp:TextBox ID="TbDates" runat="server"></asp:TextBox>
                                    <juice:Datepicker ID="Datepicker1" runat="server" TargetControlID="TbDates" DateFormat="yy-mm-dd" />
                                </td>
                            </tr>
                            <tr>
                                <th align="right">
                                    结束日期：
                                </th>
                                <td align="left">
                                    <asp:TextBox ID="TbDatet" runat="server"></asp:TextBox>
                                    <juice:Datepicker ID="Datepicker2" runat="server" TargetControlID="TbDatet" DateFormat="yy-mm-dd" />
                                </td>
                            </tr>
                            <tr>
                                <th align="right">
                                    使用状态：
                                </th>
                                <td align="left">
                                    <asp:CheckBox ID="CkStatus" runat="server" />禁用
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" align="left">
                                    <asp:Label ID="LlErr" runat="server" CssClass="failureNotification"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" colspan="2">
                                    <asp:Button ID="BtAppend" runat="server" Text="添加" OnClick="BtAppend_Click" />
                                    <asp:Button ID="BtUpdate" runat="server" Text="保存" OnClick="BtUpdate_Click" />
                                    <asp:Button ID="BnCancel" runat="server" Text="取消" OnClick="BtCancel_Click" />
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td align="center" valign="top">
                        <table border="0" cellpadding="4" cellspacing="0" class="data_list" width="560px">
                            <tr class="data_head">
                                <th>
                                    零售价
                                </th>
                                <th>
                                    会员价
                                </th>
                                <th>
                                    折扣价
                                </th>
                                <th>
                                    折扣活动
                                </th>
                                <th>
                                    促销日期
                                </th>
                                <th>
                                    状态
                                </th>
                                <th>
                                    操作
                                </th>
                            </tr>
                            <asp:Repeater ID="RpPoints" runat="server">
                                <ItemTemplate>
                                    <tr class="data_rowd">
                                        <td>
                                            <%# Me.Amon.Util.CharUtil.FormatPrice(Eval(Me.Amon.Da.Db.OMS.DSpuPrice.PRICE)) %>
                                        </td>
                                        <td>
                                            <%# Me.Amon.Util.CharUtil.FormatPrice(Eval(Me.Amon.Da.Db.OMS.DSpuPrice.VIP_PRICE)) %>
                                        </td>
                                        <td>
                                            <%# Me.Amon.Util.CharUtil.FormatPrice(Eval(Me.Amon.Da.Db.OMS.DSpuPrice.PRO_PRICE)) %>
                                        </td>
                                        <td>
                                            <%# Eval(Me.Amon.Da.Db.OMS.DSpuPrice.PRO_TYPE)%>
                                        </td>
                                        <td>
                                            <%# Eval(Me.Amon.Da.Db.OMS.DSpuPrice.VALID_DATES)%>~<%# Eval(Me.Amon.Da.Db.OMS.DSpuPrice.VALID_DATET)%>
                                        </td>
                                        <td>
                                            <%# Me.Amon.POS.MPos.GetStatusName(Eval(Me.Amon.Da.Db.OMS.DSpuPrice.STATUS))%>
                                        </td>
                                        <td align="center">
                                            <asp:LinkButton ID="LbEdit" runat="server" CommandArgument="<%# Eval(Me.Amon.Da.Db.OMS.DSpuPrice.ID)%>" OnClick="LbEdit_Click">编辑</asp:LinkButton>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                                <AlternatingItemTemplate>
                                    <tr class="data_rowd">
                                        <td>
                                            <%# Me.Amon.Util.CharUtil.FormatPrice(Eval(Me.Amon.Da.Db.OMS.DSpuPrice.PRICE)) %>
                                        </td>
                                        <td>
                                            <%# Me.Amon.Util.CharUtil.FormatPrice(Eval(Me.Amon.Da.Db.OMS.DSpuPrice.VIP_PRICE)) %>
                                        </td>
                                        <td>
                                            <%# Me.Amon.Util.CharUtil.FormatPrice(Eval(Me.Amon.Da.Db.OMS.DSpuPrice.PRO_PRICE)) %>
                                        </td>
                                        <td>
                                            <%# Eval(Me.Amon.Da.Db.OMS.DSpuPrice.PRO_TYPE)%>
                                        </td>
                                        <td>
                                            <%# Eval(Me.Amon.Da.Db.OMS.DSpuPrice.VALID_DATES)%>~<%# Eval(Me.Amon.Da.Db.OMS.DSpuPrice.VALID_DATET)%>
                                        </td>
                                        <td>
                                            <%# Me.Amon.POS.MPos.GetStatusName(Eval(Me.Amon.Da.Db.OMS.DSpuPrice.STATUS))%>
                                        </td>
                                        <td align="center">
                                            <asp:LinkButton ID="LbEdit" runat="server" CommandArgument="<%# Eval(Me.Amon.Da.Db.OMS.DSpuPrice.ID)%>" OnClick="LbEdit_Click">编辑</asp:LinkButton>
                                        </td>
                                    </tr>
                                </AlternatingItemTemplate>
                            </asp:Repeater>
                            <tr>
                                <td colspan="7" align="right">
                                    <asp:LinkButton ID="HlHome" runat="server" OnClick="HlHome_Click">首页</asp:LinkButton>
                                    <asp:Label ID="LlPrev" runat="server">...</asp:Label>
                                    <asp:LinkButton ID="HlPage1" runat="server" OnClick="HlPage1_Click">HyperLink</asp:LinkButton>
                                    <asp:LinkButton ID="HlPage2" runat="server" OnClick="HlPage2_Click">HyperLink</asp:LinkButton>
                                    <asp:LinkButton ID="HlPage3" runat="server" OnClick="HlPage3_Click">HyperLink</asp:LinkButton>
                                    <asp:Label ID="LlNext" runat="server">...</asp:Label>
                                    <asp:LinkButton ID="HlLast" runat="server" OnClick="HlLast_Click">尾页</asp:LinkButton>
                                    <asp:Label ID="LlPage" runat="server">HyperLink</asp:Label>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
